home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 1.7 KB | 70 lines | [TEXT/CWIE] |
- // Release Version: $ ODF 1 $
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
-
- //================================================================================
- #ifndef PART_H
- #include "Part.h"
- #endif
-
- #ifndef FRAME_H
- #include "Frame.h"
- #endif
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- #ifndef BINDING_K
- #include "Binding.k"
- #endif
-
- // ----- Framework Includes -----
- #ifndef FWUTIL_H
- #include "FWUtil.h"
- #endif
-
- //==============================================================================
- #ifdef FW_BUILD_MAC
- #pragma segment Sample2
- #endif
-
- FW_DEFINE_AUTO(CSample2Part)
-
- //==============================================================================
- CSample2Part::CSample2Part(ODPart* odPart)
- : FW_CPart(odPart, FW_gInstance, kPartInfoID)
- {
- }
-
- //--------------------------------------------------------------------------------
- CSample2Part::~CSample2Part()
- {
- }
-
- //--------------------------------------------------------------------------------
- void
- CSample2Part::Initialize(Environment* ev) // Override
- {
- FW_CPart::Initialize(ev);
- FW_CSelection* selection = NULL;
- const ODType kMainPresentation = "Apple:Presentation:Sample2";
- this->RegisterPresentation(ev, kMainPresentation, true, selection);
- }
-
- //--------------------------------------------------------------------------------
- FW_CFrame*
- CSample2Part::NewFrame(Environment* ev, ODFrame* odFrame,
- FW_CPresentation* presentation, FW_Boolean fromStorage) // Override
- {
- FW_UNUSED(presentation);
- FW_UNUSED(fromStorage);
- return FW_NEW(CSample2Frame, (ev, odFrame, presentation, this));
- }
-
- //--------------------------------------------------------------------------------
- FW_CContent*
- CSample2Part::NewPartContent(Environment* ev)
- {
- return NULL;
- }
-